package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class SearchCompanyResponse {
    @ApiModelProperty(value = "企业列表，分页", dataType = "SearchCompanyResponse.Company")
    private PageResponse2<Company> companyPage;

    @Data
    @Builder
    @ApiModel("SearchCompanyResponse.Company")
    public static class Company {
        @ApiModelProperty(value = "企业ID")
        private Integer companyId;
        @ApiModelProperty(value = "企业名称")
        private String companyName;
        @ApiModelProperty(value = "企业LOGO")
        private String companyLogo;
        @ApiModelProperty(value = "等级")
        private Integer companyLevel;
        @ApiModelProperty(value = "中科公信:1存在")
        private Integer hasZkgx;

        @ApiModelProperty(value = "商品列表", dataType = "SearchCompanyResponse.Goods")
        private List<Goods> goodsList;
    }

    @Data
    @Builder
    @ApiModel("SearchCompanyResponse.Goods")
    public static class Goods {
        @ApiModelProperty(value = "商品列表")
        private Integer goodsId;
        @ApiModelProperty(value = "商品列表")
        private String photo;
    }
}
